# Contributor: Matthew T Hoare <matthew.t.hoare@gmail.com>
# Maintainer: Matthew T Hoare <matthew.t.hoare@gmail.com>
pkgname=azote
pkgver=1.12.1
pkgrel=0
pkgdesc="Wallpaper and colour manager for Sway, i3 and other window managers"
url="https://github.com/nwg-piotr/azote"
arch="noarch"
license="GPL-3.0-or-later AND BSD-3-Clause"
depends="
	feh
	gtk+3.0
	py3-cairo
	py3-gobject3
	py3-pillow
	py3-send2trash
	python3
	xrandr
	"
makedepends="py3-setuptools"
options="!check" # no checks
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/nwg-piotr/azote/archive/v$pkgver.tar.gz"

build() {
	python3 setup.py build
}

package() {
	install -Dm755 dist/azote "$pkgdir"/usr/bin/azote
	install -D -t "$pkgdir"/usr/share/icons/hicolor/scalable/apps/azote.svg dist/azote.svg
	install -D -t "$pkgdir"/usr/share/"$pkgname" dist/indicator_active.png
	install -D -t "$pkgdir"/usr/share/"$pkgname" dist/indicator_attention.png
	install -D -t "$pkgdir"/usr/share/applications dist/azote.desktop
	python3 setup.py install --root="$pkgdir" --skip-build
}

sha512sums="
83e9cfe79cb2ec88914af12327e7def63c8abeae575240ae6b7c5ede4c6b3b7747bfc15c674f697135d2c50f6512b420a4ff771f3fecde27e5c995ab59227e67  azote-1.12.1.tar.gz
"
